package com.csun.cmny.provider.device.phone;

import com.csun.cmny.config.properties.CmnyProperties;
import com.csun.cmny.provider.netty.server.Constant;
import com.csun.cmny.provider.netty.server.NettyServer;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-02-19 09:20
 * @Description: the class phone netty tcp server
 */
@Slf4j
public class PhoneNettyTcpServer extends NettyServer {

    public PhoneNettyTcpServer(int port, ChannelInitializer channelInitializer, ServerBootstrap serverBootstrap) {
        super(port, Constant.SOCK_STREAM, channelInitializer, serverBootstrap, null);
    }
}
